﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using MyAnimelistRecommender.wAnime.Model;

namespace MyAnimelistRecommender.wAnime.View.Widget
{
    /// <summary>
    /// Interaction logic for WidgetView.xaml
    /// </summary>
    public partial class WidgetView : UserControl, IWidgetView
    {
        #region private members

        #endregion private members

        #region public members

        #endregion public members

        #region constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="WidgetView"/> class
        /// </summary>
        public WidgetView()
        {
            Model = new wAnimeModel();

            InitializeComponent();
        }

        #endregion constructors

        #region private methods

        #endregion private methods

        #region protected methods

        #endregion protected methods

        #region public methods

        #endregion public methods

        #region IView Members

        /// <summary>
        /// Gets the used presenter of the view
        /// </summary>
        public object Presenter
        {
            get;
            set;
        }

        #endregion IView Members

        #region IWidgetView Member

        /// <summary>
        /// Gets or sets the WidgetPresentationModel
        /// </summary>
        public wAnimeModel Model
        {
            get { return DataContext as wAnimeModel; }
            private set { DataContext = value; }
        }

        #endregion IWidgetView Member
    }
}